﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModifyFactoryInfo.aspx.cs"
    Inherits="BaseInfoManagement_ModifyFactoryInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <base target="_self" />
    <script type="text/javascript">
        function showMessage(message) {
            alert(message);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <div>
            <asp:Panel ID="Panel1" runat="server" Width="95%" CssClass="modalPopup">
                <asp:Panel ID="Panel3" runat="server" Style="cursor: move; background-color: #DDDDDD;
                    border: solid 1px Gray; color: Black">
                    <div class="tagdivhead" style="background-color: #D6E0EE; padding-top: 8px">
                        <div class="divcenter">
                            <span>&nbsp;<asp:Label ID="lbtitle" runat="server" CssClass="querytextCss" Width="150px"
                                Height="16px"></asp:Label>
                            </span>
                        </div>
                    </div>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ModifytableCss">
                        <tr>
                            <td colspan="3" style="height: 1px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="querytexttdCss" style="width: 100px">
                                <%= Resources.Resource.FactoryName%><%--工厂名称--%>
                            </td>
                            <td class="querycoltdCss" style="width: 25%">
                                <asp:TextBox ID="txtPlantName" runat="server" Width="120px" MaxLength="45"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage=""
                                    ControlToValidate="txtPlantName" Text="*" Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                            <td rowspan="2">
                                <table cellpadding="0" cellspacing="0" border="0" width="80%">
                                    <tr>
                                        <td colspan="2" align="left">
                                            <span class="querytextCss"><%= Resources.Resource.BUList%><%--BU列表--%></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:ListBox ID="lbAddedPU" runat="server" SelectionMode="Multiple" Height="300px"
                                                Width="200px"></asp:ListBox>
                                        </td>
                                        <td valign="top" align="center" style="width: 10%;">
                                            <table cellpadding="0" cellspacing="0" width="100%" style="height: 100%;">
                                                <tr>
                                                    <td style="height: 100px;">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" style="height: 40px;">                                             <%--添 加--%>
                                                        <asp:Button ID="btnAddPU" runat="server" Text="<%$ Resources:Resource,btnAdd%>" Width="58px" OnClientClick="AddPU()"
                                                            OnClick="btnAddPU_Click" CausesValidation="false" /><br />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" style="height: 40px;">                <%--移 除--%>
                                                        <asp:Button ID="btnRemove" runat="server" Text="<%$ Resources:Resource,btnRemove%>" Width="58px" OnClick="btnRemovePU_Click"
                                                            CausesValidation="false" />
                                                        <br />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="height: 100px">
                                <asp:HiddenField ID="hidMounterID" runat="server" />
                            </td>
                        </tr>
                        <tr style="height: 1px;">
                            <td colspan="3" align="center" style="background-color: #D6E0EE">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="height: 1px;">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="padding-bottom: 3; padding-top: 3;">
                                <asp:Button ID="btnUpd" runat="server" Text="<%$Resources:Resource,btnSave%>" OnClick="btnUpd_OnClick" /> <%--保 存--%>
                                &nbsp;&nbsp;&nbsp;<asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Resource, btnClose%>" OnClientClick="Closed()" /> <%--关 闭--%>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="height: 1px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </asp:Panel>
        </div>
    </center>
    <asp:HiddenField ID="HidAddedPlant" runat="server" />
    </form>
</body>
<script>

    function Closed() {
        window.opener = null; window.close();
    }
    function AddPU() {
        var selectPage = 'BUInfoMaintain.aspx' + "?action=select&time=" + (new Date()).getTime().toString();
        var retVal = window.showModalDialog(selectPage, 'newwindow', 'dialogHeight: 600px; dialogWidth: 800px; center: yes; help: no; resizable: no; status: no;scroll:auto');
        document.getElementById('<%=HidAddedPlant.ClientID %>').value = retVal;

    }

</script>
</html>
